package com.jt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller //1.将该类交给spring容器管理 2.同时开启springMVC机制
public class HelloController {

    @RequestMapping("/hello")
    public String hello(){
        //在application.yml中已动态拼接前缀/templates/与后缀.html
        return "hello";
    }
}
